import {FC} from 'react';
import { Card,Typography } from 'antd';
type PropsType={
  cardNum:number
  cardText:string
}

const TaskCard: FC<PropsType> = (props: PropsType) => {
  const { Title,Text} = Typography;
  const {cardNum,cardText } = props
  return <Card style={{height:'calc(20vh - 20px)',boxShadow:'rgba(100, 100, 111, 0.2) 0px 7px 29px 0px'}}>
  <Title>{cardNum}</Title>
  <Text type="secondary">{cardText}</Text>
</Card>
}

export default TaskCard;